#LINK_DIRECTORIES(/usr/local/lib/ffmpeg_tmp/)

add_executable( rtmp src/demo7.cpp )

target_compile_definitions( rtmp PRIVATE APP_NAME="wifiMonitor" )

#https://stackoverflow.com/questions/41608136/sdl-sndioaudio-c-undefined-reference-to-sio
#https://github.com/smanders/externpro/issues/212
#https://github.com/sourcey/libsourcey/issues/214
#undefined reference to symbol 'XShmDetach'
#libavcodec.so: undefined reference to symbol 'vaCreateConfig'
#/usr/local/lib/ffmpeg_tmp/
target_link_libraries(rtmp
        -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale
        -lavutil
        -lxcb -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb-render
        -lX11 -llzma -lz -pthread
        -lm -lva -lbz2 Xv va-x11 va-drm -lSDL2
        -lasound -lsndio
        Xext
        )


target_link_directories(rtmp PUBLIC "/usr/local/lib/ffmpeg_tmp/")